package com.sg.controller.bff;

import com.sg.service.biz.bff.MobileFrameworkService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "MobileFramework", tags = {"MobileFramework"})
@RestController
// @RequestMapping("/oms/mobileFramework/")
public class MobileFrameworkController {

    @Autowired
    MobileFrameworkService mobileFrameworkService;

    /**
     * B1查询空间编号查空间ID详情
     * gen by moon at 4/1/2024, 2:17:57 AM
     */
    @PostMapping("/oms/mobileFramework/querySpaceIdLookupDetail")
    @ApiOperation(value = "B1查询空间编号查空间ID详情", response = OkrResult.class)
    public OkrResult<BffQuerySpaceIdLookupDetailRespDto> querySpaceIdLookupDetail(@RequestBody(required = false) @Validated BffQuerySpaceIdLookupDetailReqDto reqDTO) {
        return OkrResult.success(mobileFrameworkService.querySpaceIdLookupDetail(reqDTO));
    }

    /**
     * B2查询移动端主导航列表
     * gen by moon at 4/1/2024, 2:39:29 AM
     */
    @PostMapping("/oms/mobileFramework/queryMobileMainNavigationList")
    @ApiOperation(value = "B2查询移动端主导航列表", response = OkrResult.class)
    public OkrResult<BffQueryMobileMainNavigationListRespDto> queryMobileMainNavigationList(@RequestBody(required = false) @Validated BffQueryMobileMainNavigationListReqDto reqDTO) {
        return OkrResult.success(mobileFrameworkService.queryMobileMainNavigationList(reqDTO));
    }

    /**
     * B1执行移动端当前用户就职记录
     * gen by moon at 4/3/2024, 12:01:03 AM
     */
    @PostMapping("/oms/mobileFramework/implementMobileCurrentUserEmploymentRecord")
    @ApiOperation(value = "B1执行移动端当前用户就职记录", response = OkrResult.class)
    public OkrResult<BffImplementMobileCurrentUserEmploymentRecordRespDto> implementMobileCurrentUserEmploymentRecord(@RequestBody(required = false) @Validated BffImplementMobileCurrentUserEmploymentRecordReqDto reqDTO) {
        return OkrResult.success(mobileFrameworkService.implementMobileCurrentUserEmploymentRecord(reqDTO));
    }
}
